﻿using System.Collections.Generic;

namespace LINQPadDriver
{
  internal static partial class Helper
  {
    public static TValue GetOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key)
    {
      TValue value;
      dictionary.TryGetValue(key, out value);
      return value;
    }
  }
}